package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.ObjectQuery;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.util.JsonResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;


public interface IEmployeeService {
    void save(Employee employee, Long[] roleIds);

    void delete(Long id);

    void update(Employee employee, Long[] roleIds);

    Employee get(Long id);

    List<Employee> getAll();


    PageResult<Employee> query(ObjectQuery qo);


    void batchDelete(Long[] ids);

    void selectUsernamePassword(String username, String password);

    Employee selectUsername(String username);

    void changState(Long id);

    JsonResult changePassword(String oldOne, String newOne);

    Map<Object, Object> uploadHeadImg(MultipartFile file);

    Map<Object, Object> getHeadImg();

}
